#ifndef __LEDC__H__
#define __LEDC__H__

#include <stdbool.h>
#include <stdio.h>
#include "driver/ledc.h"
#include "esp_err.h"
#include "led_color.h"
typedef enum{  
    COMMON_CATHODE, 
    COMMON_ANNODE
}led_type_t;

void ledc_init(void);
int ledc_set_RGB(uint8_t R,uint8_t G,uint8_t B);
bool get_led_status();
led_color_t get_led_color();
void set_led_status(bool is_on);
void set_led_state_reverse();
void set_led_type(led_type_t type);
void set_led_saturation_down(void);
void set_led_brightness_down(void);
void set_led_change_color(void);
void set_led_off_time(unsigned char minute);
unsigned char get_led_off_time(void);
void convertColorString(const char* colorString, unsigned char* r, unsigned char* g, unsigned char* b);

#endif  //!__LEDC__H__